PGetPolygonAttribs

Gets the polygon attributes of the currently selected polygons, or the default attributes if no polygons are selected.


Query results

short nSides;
Number of sides
short nStarInset;
Percent star inset (from 0 to 100)
No polygons selected. If no polygons are selected and no publication is open, PageMaker returns the default attributes. If no polygons are selected and a publication is open, PageMaker returns the default polygon attributes for the currently open publication.

Example. To change the attributes of the selected polygons, use the PPolygonAttribs command.

PGetPolygonAttribs attribs;
if (attribs.nStarInset > 0)
    PPolyAttribs(attribs.nSides, Random(100));


See also

The PPolygon and PPolygonJoin commands


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support